<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/base_user.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>店铺分类</title>
</head>
<body>
<div class="wrap-cre">
    <div class="header">
        <p>店铺分类</p>
        <img src="__STATIC__/img_user/back.png" class="back" onclick="goods_cate_back_url();">
    </div>
    <div class="dp-info">
        <ul>
            <li><a href="{:url('mobile/user_category/shop_all_goods')}?shop_id={:input('shop_id')}">全部商品<img src="__STATIC__/img_user/next1.png"></a></li>
            {volist name='arr' id='v'}
            <li><a href="javascript:toggle({$v.id});">{$v.title}<span>查看全部</span></a></li>
            {if condition="isset($v->classify)"}
            <ul class="type" id="son_{$v.id}">
                {volist name='v->classify' id='vv'}
                <li><a href="{:url('mobile/user_category/shop_all_goods')}?shop_id={$vv.member_id}&cate_id={$vv.id}">{$vv.title}</a></li>
                {/volist}
            </ul>
            {else}
                <ul class="type" id="son_{$v.id}">
                    <li style="width: 100%;"><a>无下级分类</a></li>
                </ul>
            {/if}
            {/volist}
        </ul>
    </div>


</div>
<script>
    function toggle(id){
        $('#son_'+id).toggle();
    }
    function goods_cate_back_url() {
        var url = sessionStorage.getItem('shop_cate_back');
        window.location.href=url;
    }
</script>
</body>
</html>